<?php defined('SYSPATH') or die('No direct script access.');

// Страницы
class Controller_Pages extends Controller_Base
{	
	public function action_get_page()
	{
		$page_url = $this->request->param('page_url');
        
        $page = $this->page_model->get_page_by_url($page_url);
		
		$title   = $page['title'];
        $content = new View('page_tpl');
        $content->page = $page;
        $description = $page['description'];
        
        $this->selected_page = $page['page_id'];
                
        $this->print_template($title, $content, $description);
	}

} // End Pages
